package com.koi.common.ex;

import com.koi.common.enums.common.IResultEnum;

/**
 * @author ･ᴗ･
 * @description [RepeatSubmitException]
 */
public class RepeatSubmitException extends RuntimeException {
    private int status;
    private String msg;

    public RepeatSubmitException(int status, String message) {
        super(message);
        this.status = status;
        this.msg = message;
    }

    public RepeatSubmitException(IResultEnum resultEnum) {
        super(resultEnum.message());
        this.status = resultEnum.status();
        this.msg = resultEnum.message();
    }


    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
